import request from "../request";

export function getCategory() {
  return request({
    url: "/playlist/catlist"
  })
};

/**
 * 
 * @param {类型} cat 
 * @param {偏移} offset 
 * @param {数量} limit 
 * @returns 
 */
export function getCategorySongs(cat = "全部", offset = 0, limit = 35) {
  return request({
    url: "/top/playlist",
    params: {
      cat,
      limit,
      offset
    }
  })
}